#ifndef LOGIN_DIALOG_H
#define LOGIN_DIALOG_H

#include <QDialog>
#include <QString>

namespace Ui {
class LoginDialog;
}

class QComboBox;
class QPushButton;
class QLineEdit;

class LoginDialog : public QDialog
{
    Q_OBJECT
public:
    explicit LoginDialog(QWidget *parent = nullptr);
    ~LoginDialog();
    int getSelectedRole() const;
    QString getUserName() const;
private:
    Ui::LoginDialog *ui;
    bool checkUser(const QString &user, const QString &pwd, const QString &role) const;
};

#endif // LOGIN_DIALOG_H 